<extend name="CommonAdmin:base" />

<block name="script">
<script>

$(function() {
   $("input:button").button();
});
function back() {
    var url = "__URL__/index";
    window.location = url;
}
</script>
</block>

<block name="main-in">
<div>
<form action="__URL__/save" method="post">
<div>
<input type="hidden" name="id" value="{$vo.id}" />
</div>
    <table>
        <tr>
            <td class="required">公司</td>
            <td>
                <select name="company_id">
                    <volist name="companyList" id="data">
                    <option value="{$data.id}" <if condition="$data['id'] eq $vo['company_id']" >selected="selected"</if> >{$data.company_name}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td class="required">折扣</td>
            <td>
                <input type="text" name="pay_discount" value="{$vo.pay_discount}" />
            </td>
        </tr>
        <tr>
            <td>支付费用</td>
            <td>
                <input type="text" name="pay_fee" value="{$vo.pay_fee}" />
            </td>
        </tr>
        <tr>
            <td>发票金额</td>
            <td>
                <input type="text" name="pay_bill" value="{$vo.pay_bill}" />
            </td>
        </tr>
        <tr>
            <td>支付明细</td>
            <td>
                <input type="text" name="pay_desc" value="{$vo.pay_desc}" />
            </td>
        </tr>
        <tr>
            <td>桌号</td>
            <td>
                <input type="text" name="table_num" value="{$vo.table_num}" />
            </td>
        </tr>
        <tr>
            <td>发票描述</td>
            <td>
                <input type="text" name="bill_text" value="{$vo.bill_text}" />
            </td>
        </tr>
        <tr>
            <td>是否显示</td>
            <td>
                <input type="text" name="enabled" value="{$vo.enabled}" />
            </td>
        </tr>
        <tr>
            <td>支付方式</td>
            <td>
                <input type="text" name="pay_type" value="{$vo.pay_type}" />
            </td>
        </tr>
        <tr>
            <td>支付时间</td>
            <td>
                <input type="text" name="pay_time" value="{$vo.pay_time}" />
            </td>
        </tr>
        <tr>
            <td>应付账单</td>
            <td>
                <input type="text" name="pay_may" value="{$vo.pay_may}" />
            </td>
        </tr>
        <tr>
            <td>营业员</td>
            <td>
                <select name="cid">
                    <volist name="personList" id="cidData">
                    <option value="{$cidData.id}" <if condition="$cidData['id'] eq $vo['cid']" >selected="selected"</if>  >{$cidData.cname}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td>收银员</td>
            <td>
                <select name="acc_cid">
                    <volist name="personList" id="accCidData">
                    <option value="{$accCidData.id}" <if condition="$accCidData['id'] eq $vo['acc_cid']" >selected="selected"</if> >{$accCidData.cname}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan=2 align="right">
                <button type="submit">提交</button>
                <button type="button" onclick="back()">返回</button>
            </td>
        </tr>
    </table>
</form>
</div>
</block>